using System;
using System.ComponentModel.DataAnnotations;

namespace WRSManagementSystem.DomainModel.Entities
{
    [MetadataType(typeof (TaskMetadata))]
    public partial class Task
    {
        public void AddResource(TaskResource res)
        {
            throw new NotImplementedException();
        }
    }

    internal class TaskMetadata
    {
        [StringLength(30), Required]
        public virtual string Name { get; set; }
    }
}